public BaseResponse InActivateUser(long id)
        {
            BaseResponse resp = new BaseResponse();

            try
            {
                if (ValidateRequest.InActivateUser(id))
                {
                    var userCrud = new UserCRUD();
                    if (userCrud.IsUserExists(id))
                    {
                        var status = userCrud.InActivateUser(id);
                        if (status > 0)
                        {
                            resp.OK();
                        }
                        else
                        {
                            resp.Conflict();
                        }
                    }
                    else
                    {
                        resp.Conflict();
                    }
                }
                else
                {
                    resp.BadRequest();
                }
            }
            catch (Exception es)
            {
                logger.Error(string.Format("DeleteUser, UserID={0}", id));
                logger.Error("DeleteUser " + es.StackTrace);
                resp.InternalServerError();
            }
            return(resp);
        }