internal Models.GuardianModel.editGuardianResp editGuardian(Models.GuardianModel.editGuardianReq req) { Models.GuardianModel.editGuardianResp rsp = new Models.GuardianModel.editGuardianResp(); rsp.apiError = new APIErrors(); ITGuardian iGuard = _storage.editGuardian(_storage.GetGuardian(req.nGuardianId), req.nStudentPK, req.nparentPK, req.bStatus); //Added Entity if (iGuard != null && iGuard.n > 0) { rsp.apiError = ApiError_defs.ok; } else { rsp.apiError.sErrorMessage = "Unable to delete Relation"; } return(rsp); }
public object editGuardian([FromBody] Models.GuardianModel.editGuardianReq req) { Bllfiles.BLL_Mapping bllentity = new Bllfiles.BLL_Mapping(); Models.GuardianModel.editGuardianResp resp = bllentity.editGuardian(req); return(resp); }