public Result CheckUserFoodDetails(FoodSchedule foodSchedule) { User user = getCurrentUser(); Result result = new Result(); if (user == null) { result.Message = "session timeout !!!"; } else { result = ifoodschedule.GetUserFoodDetails(foodSchedule); } return(result); }