public async Task <IActionResult> Delete(int id)
 {
     habitService.DeleteHabit(id);
     return(NoContent());
 }
Exemple #2
0
        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));
 }
Exemple #4
0
        public JsonResult Delete(int id)
        {
            var response = _habitService.DeleteHabit(id);

            return(ServiceResponse(response));
        }