public IActionResult AddActivity([FromBody] AddActivityBinding obj) { try { groupService.AddActivity(HttpContext.User.GetId(), obj.groupID, obj.classroomID, obj.timespan, obj.place, obj.title, obj.content); return(Ok(new { status = "success" })); } catch (Exception ex) { return(Ok(new { status = "error", message = ex.Message })); } }