public FrayteManifestName GetQuotation(int QuotationShipmentId, string CustomerName, string FromPostCode, string ToPostCode, int CreatedBy) { FrayteManifestName result = new FrayteManifestName(); var item = new QuotationRepository().GetQuotationDetail(QuotationShipmentId, CustomerName); var TimeZone = new QuotationRepository().GetUserTimeZone(CreatedBy); var UserType = UtilityRepository.GetUserType(CreatedBy); var DateObj = DateTime.UtcNow; TimeZoneInfo TimeZoneInformation = TimeZoneInfo.FindSystemTimeZoneById(TimeZone.Name); var remoteTime = TimeZoneInfo.ConvertTime(DateObj, TimeZoneInformation).ToString("hh:mm:ss tt"); if (item != null) { int CartoonQty = new QuotationRepository().SumofCartoonQty(item.QuotationShipmentId); decimal Volume = new QuotationRepository().TotalVolume(item.QuotationShipmentId, item.PackageCalculationType); if (item.OperationZoneId == 1) { result = HKQuoteReport(item, Volume, CartoonQty, TimeZoneInformation, remoteTime); } else if (item.OperationZoneId == 2) { result = UKQuoteReport(item, Volume, CartoonQty, TimeZoneInformation, remoteTime, UserType, CreatedBy); } } return(result); }