public AbsenceScope UpdateAbsenceScope(AbsenceScope absenceScope)
        {
            var sql         = "[Location].[sp_updateAbsenceTypes]";
            var queryParams = new DynamicParameters();

            queryParams.Add("@OrgId", absenceScope.OrganizatonId);
            queryParams.Add("@DistrictId", absenceScope.DistrictId);
            queryParams.Add("@Visibility", absenceScope.Visibility);
            queryParams.Add("@Id", absenceScope.Id);
            queryParams.Add("@absenceType", absenceScope.AbsenceType);
            return(Db.Query <AbsenceScope>(sql, queryParams, commandType: CommandType.StoredProcedure).FirstOrDefault());
        }
示例#2
0
 public AbsenceScope UpdateAbsenceScope(AbsenceScope absenceScope)
 {
     return(_repo.UpdateAbsenceScope(absenceScope));
 }