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); }
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); }