public void ReleaseOfPrisoner(ReleaseOfPrisonerDto release) { if (release != null) { dataService.ExecNonQuery("insertEmployee", release.ReleasedEmployee, "employeeID", out int _ReleasedEmployeeID); dataService.ExecNonQuery("InsertReleaseProcedures", "ReleaseProceduresID", out int _ReleasedProceduresID, new SqlParameter("@employeeID", _ReleasedEmployeeID)); var ReleaseOfPrisoner = new ReleaseOfPrisoner() { AccruedAmount = release.AccruedAmount, DateOfRelease = release.DateOfRelease, DetentionID = release.DetentionID, PaidAmount = release.PaidAmount, ReleaseProceduresID = _ReleasedProceduresID }; dataService.ExecNonQuery("ReleaseOfPrisoner", ReleaseOfPrisoner); } }
public void ReleaseOfPrisoner(ReleaseOfPrisoner release) { var releaseOfPrisonerDto = Mapper.Map <ReleaseOfPrisoner, ReleaseOfPrisonerDto>(release); prisonerClient.ReleaseOfPrisoner(releaseOfPrisonerDto); }
public void ReleaseOfPrisoner(ReleaseOfPrisoner release) { prisonerDataService.ReleaseOfPrisoner(release); }