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())); }