public static T_Role ToModel(this T_RoleModel node) { return(new T_Role() { Id = node.Id, Name = node.Name, AccessKey = node.AccessKey, }); }
public static T_RoleModel DTO(this T_Role node) { if (node == null) { return(null); } var model = new T_RoleModel() { Id = node.Id, Name = node.Name, AccessKey = node.AccessKey, }; return(model); }
public DataGrid <T_RoleModel> Search(T_RoleModel model, Dictionary <string, string> Orders = null, int PageSize = 15, int PageIndex = 100) { throw new NotImplementedException(); }
public int DeleteData(T_RoleModel model) { return(this.Delete(model.Id)); }
public int EditData(T_RoleModel model) { return(this.Edit(model.ToModel())); }
public int AddData(T_RoleModel model) { return(this.Add(model.ToModel())); }