public HttpResponseMessage GetInitials() { List <WorkingWeekDay> lstWeekDays = new List <WorkingWeekDay>(); lstWeekDays = new WeekDaysRepository().GetWeekDaysDataList(); List <FrayteCountryCode> lstCountry = new List <FrayteCountryCode>(); lstCountry = new CountryRepository().lstCountry(); List <FrayteCountryPhoneCode> lstCountryPhones = new List <FrayteCountryPhoneCode>(); lstCountryPhones = new CountryRepository().GetCountryPhoneCodeList(); List <TimeZoneModal> lstTimeZone = new List <TimeZoneModal>(); lstTimeZone = new TimeZoneRepository().GetShipmentTimeZones(); TimeZoneModal operationTimeZone = new TimeZoneRepository().GetOperationTimezone(); return(this.Request.CreateResponse( HttpStatusCode.OK, new { WorkingWeekDays = lstWeekDays, Countries = lstCountry, TimeZones = lstTimeZone, CountryPhoneCodes = lstCountryPhones, OperationTimeZone = operationTimeZone })); }
public IHttpActionResult DeleteWorkingWeekDay(int weekDayId) { FrayteResult result = new WeekDaysRepository().DeleteWorkingWeekDay(weekDayId); if (result != null && result.Status) { return(Ok()); } else { return(NotFound()); } }
public IHttpActionResult SaveWeekDay(FrayteWeekDays frayteWeekDay) { FrayteResult result = new WeekDaysRepository().SaveWeekDay(frayteWeekDay); if (result != null && result.Status) { return(Ok()); } else { return(NotFound()); } }
public List <FrayteWeekDays> GetWeekDaysList() { var weekDaysList = new WeekDaysRepository().GetWeekDaysList(); return(weekDaysList); }
public FrayteWeekDays GetWeekDays(int weekDayId) { var weekDays1 = new WeekDaysRepository().GetWeekDays(weekDayId); return(weekDays1); }