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