コード例 #1
0
        public async Task <IHttpActionResult> Delete(int id)
        {
            BlogType entity = await BlogTypeService.FindOneAsync(id);

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

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