예제 #1
0
        public async Task <IActionResult> AddContracts(Contracts contracts)
        {
            try
            {
                Contracts result = await dataRepository.AddContracts(contracts);

                if (result != null)
                {
                    return(Ok(result));
                }
                return(Ok("Error"));;
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }