public ActionResult <List <RestaurantViewModel> > ListUndeleted() { var res = _bo.ListUnDeleted(); if (!res.Success) { return(InternalServerError()); } var list = new List <RestaurantViewModel>(); foreach (var item in res.Result) { list.Add(RestaurantViewModel.Parse(item)); } return(list); }