コード例 #1
0
        public ActionResult <ItemsResponse <int> > UpdateLastAttested(int id)
        {
            int          code     = 200;
            BaseResponse response = null;

            try
            {
                int userId = _auth.GetCurrentUserId();
                _service.UpdateLastAttested(id);
                response = new SuccessResponse();
            }
            catch (Exception ex)
            {
                code     = 500;
                response = new ErrorResponse(ex.Message);
                base.Logger.LogError(ex.ToString());
            }

            return(StatusCode(code, response));
        }