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; } }
public int UpdateGroupCT([FromBody] UpdateGroupRes request) { return(_groupService.UpdateGroupSV(request)); }
public int UpdateGroupSV(UpdateGroupRes request) { return(_groupRepository.UpdateGroupRP(request)); }