public ResponseResult <Cookie> Login([FromBody] Login owner)
        {
            ResponseResult <Cookie> result = new ResponseResult <Cookie>();

            try
            {
                OwnerService ownerService = new OwnerService();
                result.Result = ownerService.Login(owner);
                if (result.Result.UserId == 0)
                {
                    result.IsSuccess = false;
                    result.Message   = "Incorrect RegNo Or Password";
                }
            }
            catch (Exception e)
            {
                result.IsSuccess = false;
                result.Message   = e.Message;
            }
            return(result);
        }
        public Cookie Login([FromBody] Login owner)
        {
            OwnerService ownerService = new OwnerService();

            return(ownerService.Login(owner));
        }