コード例 #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);
 }