Ejemplo n.º 1
0
        public async Task <IActionResult> CreateOrUpdate([FromForm] MapDto model)
        {
            var result = await _mapService.CreateOrUpdate(model);

            if (result.Successed)
            {
                return(Ok(result.Property));
            }
            return(BadRequest("values not valid"));
        }