public JsonResult Edit(FoodOrderViewModel obj)
 {
     if (obj.FoodOrderID != 0)
     {
         frepo.Edit(obj);
         return(Json(1, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(0, JsonRequestBehavior.AllowGet));
     }
 }