public async Task <IActionResult> BulkTrash(List <int> NoteId) { try { if (NoteId != null) { var userId = TokenUserId(); List <DisplayResponceModel> data = await note.BulkTrash(NoteId, userId); if (data.Count != 0) { return(Ok(new { success = true, Meassage = "Bulk Trash SucessessFully", data })); } else { return(BadRequest(new { success = false, Meassage = "Bulk Trash unsuceessful" })); } } else { return(BadRequest(new { success = false, Meassage = "Invalid Input!" })); } } catch (Exception e) { return(BadRequest(new { success = false, Meassage = e.Message })); } }