public ApiSimpleResult<RoleModel> AddRole(RoleModelQuery role)
 {
     var response = AccountSvc.CreateRole(role);
     ApiSimpleResult<RoleModel> result = new ApiSimpleResult<RoleModel>
     {
         StatusString = "Successful",
         Message = "Create new successfully",
         Data = response
     };
     return result;
 }
 public RoleModel CreateRole(RoleModelQuery roleModelQuery)
 {
     RoleModel result = new RoleModel();
     var status = new GeneralStatus
     {
         StatusName = roleModelQuery.Status,
         CreateTime = DateTime.Now,
         UpdateTime = DateTime.Now
     };
     db.GeneralStatuses.Add(status);
     var role = new Role
     {
         RoleName = roleModelQuery.RoleName,
         StatusId = status.StatusId,
         Note = roleModelQuery.Note
     };
     db.Roles.Add(role);
     db.SaveChanges();
     result = new RoleModel
     {
         RoleId = role.RoleId,
         RoleName = role.RoleName,
     };
     return result;
 }