/// <summary> /// For Inserting location information in the database. /// </summary> /// <param name="objLocation"></param> /// <returns></returns> public int AddLocation(LocationList objLocation) { CustomerDAL objCustomerDAL = new CustomerDAL(); CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); try { return(objCustomerDAL.AddLocation(objLocation)); } 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)); } }