Exemple #1
0
        public IActionResult SaveCall([FromBody] OrderCallBindingModel call)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            OrderCall callItem = new OrderCall(call.Name, call.Phone);

            callsRepository.SaveCall(callItem);

            return(Ok());
        }