Example #1
0
        public async Task <IActionResult> GetCollaborators()
        {
            var userId = TokenUserId();
            IList <GetCollabratorResponce> data = await note.GetCollaborators(userId);

            if (data != null)
            {
                return(Ok(new { success = true, Meassage = "Get Collabrators SucessessFully", data }));
            }
            else
            {
                return(BadRequest(new { success = false, Meassage = "Get Collabrators unsuceessful" }));
            }
        }