Пример #1
0
        public async Task <IHttpActionResult> Delete(int id)
        {
            SpecificationAttribute entity = await SpecificationAttributeService.FindOneAsync(id);

            if (entity == null)
            {
                return(NotFound());
            }
            await SpecificationAttributeService.DeleteAsync(entity);

            return(Ok(entity.ToModel()));
        }