Пример #1
0
        public async Task <IHttpActionResult> FormDataInput(List <RestaurantFormValue> value)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                var entity = await _repository.FormDataInput(value);

                return(Json(true));
            }
            catch (Exception e)
            {
                return(Json(false));
            }
        }