提交
This commit is contained in:
27
api_v1/Appointment.Repository/ManageGroup.cs
Normal file
27
api_v1/Appointment.Repository/ManageGroup.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Appointment.Entity;
|
||||
using Appointment.Entity.Utility;
|
||||
using Appointment.IRepository;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Appointment.Repository
|
||||
{
|
||||
public class ManagerGroup : DbContext, IManagerGroup
|
||||
{
|
||||
public ApiResult<List<UcGroup>> GetAll()
|
||||
{
|
||||
var list = Db.Queryable<UcGroup>().AS("uc_group").ToList();
|
||||
if (list != null)
|
||||
{
|
||||
foreach (var item in list)
|
||||
{
|
||||
item.OpGroup = item.OpGroup?.Trim();
|
||||
item.Descript = item.Descript?.Trim();
|
||||
item.OpFunc = item.OpFunc?.Trim();
|
||||
}
|
||||
}
|
||||
return ApiResult<List<UcGroup>>.Success("", list);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user