Пример #1
0
 public int UpdateGroupRP(UpdateGroupRes request)
 {
     try
     {
         DynamicParameters parameters = new DynamicParameters();
         parameters.Add("@Id", request.IDG);
         parameters.Add("@GroupName", request.GroupName);
         var id = SqlMapper.ExecuteScalar <int>(con, "UpdateGroup", param: parameters, commandType: CommandType.StoredProcedure);
         return(id);
     }
     catch (Exception ex)
     {
         throw ex;
         //return 0;
     }
 }
Пример #2
0
 public int UpdateGroupCT([FromBody] UpdateGroupRes request)
 {
     return(_groupService.UpdateGroupSV(request));
 }
Пример #3
0
 public int UpdateGroupSV(UpdateGroupRes request)
 {
     return(_groupRepository.UpdateGroupRP(request));
 }