示例#1
0
        public async Task <DefMealTypeRes> GetMealType(DefMealTypeGetReq request, string ticket)
        {
            DefMealTypeRes DefMealTypeRes = new DefMealTypeRes();

            DefMealTypeRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceMaster:GetMealType"), request, typeof(DefMealTypeRes), ticket);

            return(DefMealTypeRes);
        }
示例#2
0
        public DefMealTypeRes GetMealType(DefMealTypeGetReq request)
        {
            var response = new DefMealTypeRes();

            try
            {
                response.DefMealType           = _MasterRepository.GetMealType(request);
                response.ResponseStatus.Status = "Success";
            }
            catch (Exception ex)
            {
                response.ResponseStatus.Status       = "Failure";
                response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message;
            }
            return(response);
        }
示例#3
0
 public List <mMealType> GetMealType(DefMealTypeGetReq request)
 {
     return(_MongoContext.mMealType.AsQueryable().Where(a => a.ForBreakfast == true).OrderBy(x => x.MealType).ToList());
 }