コード例 #1
0
        //public async Task<ApiResponse> CreateUpdate(UserRegistrationVM _vmEmployee)
        public async Task <IHttpActionResult> CreateUpdate(UserRegistrationVM _vmEmployee)
        {
            ApiResponse apiResponse = new ApiResponse();

            _IuserRegistration = new UserRegisterRepo();
            try
            {
                //Int32 Result = await _IuserRegistration.CreateUpdate(_vmEmployee);
                //return new ApiResponse { IsValidUser = true, Message = string.Empty, MessageType = Result };
                IHttpActionResult objResult = await _IuserRegistration.CreateUpdate(_vmEmployee);

                return(objResult);
            }
            catch (Exception ex)
            {
                apiResponse = TaskUTL.GenerateExceptionResponse(ex, _pageName, true);
                return(null);
            }
        }