示例#1
0
        public void EditFacultate(FacultateViewModel facultate)
        {
            Facultati oldFacultate = _facultatiServices.Get(facultate.Id);

            oldFacultate.Nume = facultate.Nume;

            _facultatiServices.Update(oldFacultate, oldFacultate.Id);
        }
示例#2
0
 public JsonResult AddFacultate(Facultati facultate)
 {
     try
     {
         Logic logic = new Logic(db);
         logic.AddFacultate(facultate);
         return(Json(Utils.JsonResponseFactory.SuccessResponse("Success"), JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
     }
     return(Json(Utils.JsonResponseFactory.ErrorResponse("Error"), JsonRequestBehavior.AllowGet));
 }
示例#3
0
 public void AddFacultate(Facultati facultate)
 {
     _facultatiServices.Add(facultate);
 }