public bool Checked(OrderDishModel dish) { return(_valueDishChecker.Checked(new OrderFilterValue() { DepartmentId = dish.DepartmentId, StatusId = dish.DishStatusId })); }
private string getDishStrForNoticeFile(OrderDishModel dishModel) { OrderStatusEnum toFileStatus = (OrderStatusEnum)dishModel.DishStatusId; if (toFileStatus == OrderStatusEnum.ReadyConfirmed) { toFileStatus = OrderStatusEnum.Ready; } return(string.Format("Dish: {1};{2}{0}Dish Status: {3} ({4})", Environment.NewLine, dishModel.Id, dishModel.Name, (int)toFileStatus, toFileStatus.ToString())); }