public async Task <IHttpActionResult> Delete(Guid id) { ValidationError[] validationErrors = await sectionService.DeleteSectionAsync(id); if (validationErrors.Any()) { return(BadRequest()); } return(Ok()); }
public async Task DeleteSectionByIdAsync(int?id) { await ss.DeleteSectionAsync((int)id); }