public IActionResult Insert([FromBody] IssueModel issueModel) { string result = ""; try { result = issueDAL.Insert(issueModel, HttpContext.User.Identity.Name); } catch (Exception) { result = "fail"; //throw; } return(Json(result)); }
public int Insert(Issue issue) { return(issueDal.Insert(issue)); }