public IHttpActionResult SaveInquiryPositions([FromBody] object inquiryPosData) { WebResponseContentModel <List <InquiryPositionModel> > model = null; try { model = JsonConvert.DeserializeObject <WebResponseContentModel <List <InquiryPositionModel> > >(inquiryPosData.ToString()); if (model.Content != null) { inquiryRepo.SaveInquiryPositionsModel(model.Content); model.IsRequestSuccesful = true; } else { model.IsRequestSuccesful = false; model.ValidationError = ValidationExceptionError.res_09; } } catch (Exception ex) { model.IsRequestSuccesful = false; model.ValidationError = ExceptionValidationHelper.GetExceptionSource(ex); return(Json(model)); } return(Json(model)); }