public JsonResult Remove(string model) { var bus = _busRepository.GetByModel(model); if (bus == null) { return(Json(false)); } _busRepository.Remove(bus); return(Json(true)); }