/// <summary> /// This method is used to get message from storeprocedure. /// </summary> /// <param name="BatchId"></param> /// <param name="User"></param> /// <returns></returns> public PortStorageVehicleImportProp ImportPortStorageVehicles(int BatchId, string User) { try { CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); PortStorageImportExportDAL portStorageImportExportDAL = new PortStorageImportExportDAL(); return(portStorageImportExportDAL.ImportPortStorageVehicles(BatchId, User)); } catch (Exception) { throw; } finally { CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); } }
/// <summary> /// This method is used to get Import File Name /// </summary> /// <returns>string</returns> public string GetPortStorageLocationImportFileName() { try { CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); PortStorageImportExportDAL portStorageImportExportDAL = new PortStorageImportExportDAL(); return(portStorageImportExportDAL.GetPortStorageLocationImportFileName()); } catch (Exception) { throw; } finally { CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); } }