コード例 #1
0
ファイル: IssueController.cs プロジェクト: hoatv/ims2019
        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));
        }
コード例 #2
0
 public int Insert(Issue issue)
 {
     return(issueDal.Insert(issue));
 }