Пример #1
0
        public async Task <ActionResult> DeleteUser(int userid, int friendid)
        {
            try
            {
                var status = await _frienddata.RemoveFriendAsync(userid, friendid);

                if (!status)
                {
                    return(BadRequest(new CommonResponse {
                        Status = false
                    }));
                }
                return(Ok(new CommonResponse {
                    Status = true
                }));
            }
            catch (Exception exp)
            {
                _Logger.LogError(exp.Message);
                return(BadRequest(new CommonResponse {
                    Status = false
                }));
            }
        }