Spontaneous.WebApp.Models.DishModel.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            return string.Format(@" DishModel: Id={0}, Name={1}, OrderBy={3}, IsItPublic={4}," +
                "RestaurantId={5}, MenuPartId={6}, RecipeId={7}, DishState={8}."
                , Id, Name, Description, OrderBy, IsItPublic, RestaurantId, MenuPartId, RecipeId, DishState);
        }

Usage Example

Example #1
0
 public ActionResult DishDeleteConfirmed(DishModel Dish)
 {
     try
     {
         log.InfoFormat("[DishDeleteConfirmed] Dish={0} ", Dish.ToString());
         m_serviceLayer.DeleteDish(Dish);
         return RedirectToAction("DishesIndex", new { MenuPartId = Dish.MenuPartId, RestaurantId = Dish.RestaurantId });
     }
     catch(Exception ex)
     {
         log.InfoFormat("[DishDeleteConfirmed] Exception={0} ", ex.ToString());
         return View(Dish);
     }
 }
All Usage Examples Of Spontaneous.WebApp.Models.DishModel::ToString