Beispiel #1
0
        public async Task <ActionResult> RegisterClient(ClientViewModel clientViewModel)
        {
            ActionResult Result    = Ok();
            var          Client    = Helper.ViewModelToClient(clientViewModel);
            bool         IsSuccess = await Repository.AddClient(Client);

            if (!IsSuccess)
            {
                Result = Problem("Error to add client", null, 500, "", null);
            }
            return(Result);
        }