public IActionResult ActiveFriend([FromBody] BaseModel model) { var(result, errorMessage) = _userService.ActiveFriend(_workContext.UserId, model.Id); if (!string.IsNullOrEmpty(errorMessage)) { return(BadRequest(errorMessage)); } return(Ok(result)); }