public IActionResult LogIn([FromBody] ApiLoginModel request)
 {
     try
     {
         var customer = authService.AuthenticateCustomer(request, out string token);
         if (customer != null)
         {
             var model = new {
                 customer.Id,
                 Name = customer.ArabicName,
                 customer.Email,
                 customer.UserName,
                 customer.Mobile,
                 customer.Pocket,
                 customer.Address,
                 Image = AppSession.AppURL + AppSession.CustomerUploads + "/" + customer.ImageName,
                 token
             };
             return(Ok(new ApiResponseModel
             {
                 Status = EN_ResponseStatus.Success,
                 Message = "Logged in successflly",
                 Data = model,
                 Errors = null
             }));
         }
         return(Ok(new ApiResponseModel
         {
             Status = EN_ResponseStatus.Faild,
             Message = "Invalid email or password",
             Data = null,
             Errors = new string[] { "Invalid email or password" }
         }));
     }
     catch (Exception ex)
     {
         return(Ok(new ApiResponseModel
         {
             Status = EN_ResponseStatus.Faild,
             Message = "Error: " + ex.Message,
             Data = null,
             Errors = new string[] { "Error: " + ex.Message }
         }));
     }
 }