예제 #1
0
        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);
            }
        }
예제 #2
0
        public void ReleaseOfPrisoner(ReleaseOfPrisoner release)
        {
            var releaseOfPrisonerDto = Mapper.Map <ReleaseOfPrisoner, ReleaseOfPrisonerDto>(release);

            prisonerClient.ReleaseOfPrisoner(releaseOfPrisonerDto);
        }
예제 #3
0
 public void ReleaseOfPrisoner(ReleaseOfPrisoner release)
 {
     prisonerDataService.ReleaseOfPrisoner(release);
 }