Example #1
0
 public HttpResponseMessage AddUniversity(University model)
 {
     try
     {
         Log.Info("QualificationController:AddUniversity", "Add University START", string.Empty);
         UserContextModel objUser = new UserContextModel();
         objUser.UserID      = 1;
         objUser.CompanyCode = "devDB";
         var data = _qualificationService.AddUniversity(model, objUser);
         Log.Info("QualificationController:AddUniversity", "Add University END", string.Empty);
         return(this.Request.CreateResponse(HttpStatusCode.OK, data));
     }
     catch (Exception ex)
     {
         var helper = new AppPresentationException(ex);
         return(helper.GetResponse(this));
     }
 }