示例#1
0
        public IActionResult Post([FromBody] Member_Claim obj)
        {
            _log4net.Info("Member_ClaimController submitClaim called");
            if (ModelState.IsValid)
            {
                try
                {
                    var res = db.submitClaim(obj);
                    if (res != 0)
                    {
                        return(Ok(res));
                    }

                    return(NotFound());
                }
                catch (Exception)
                {
                    return(BadRequest());
                }
            }
            return(BadRequest());
        }
        public int submitClaim(Member_Claim obj)
        {
            NewList.Add(obj);

            return(1);
        }