public async Task <IActionResult> Delete(int id) { habitService.DeleteHabit(id); return(NoContent()); }
public IHttpActionResult Delete(int id) { var response = service.DeleteHabit(id); return(Ok(response)); }
public ActionResult <HabitResponse> DeleteHabit(Guid userId, Guid id) { return(habitService.DeleteHabit(userId, id)); }
public JsonResult Delete(int id) { var response = _habitService.DeleteHabit(id); return(ServiceResponse(response)); }