public ActionResult CreateContent(CreateContentRequest req) { CreateContentResponse response = new CreateContentResponse(); ContentModel model = new ContentModel() { Link = req.Link, IsActive = true, CreatedDate = DateTime.Now, ModifiedDate = DateTime.Now }; var res = model.CreateContent(model, req.UserId, dbFactory); response.link = req.Link; response.id = res; response.userid = req.UserId; response.IsSuccess = true; return(Json(response)); }