Ejemplo n.º 1
0
        public IHttpActionResult VerifyLogin(Retailer retailerObj)
        {
            Retailer retailer = null;

            try
            {
                retailer = dataRepository.VerifyLogin(retailerObj.Email, retailerObj.Password);
                if (retailer == null)
                {
                    return(NotFound());
                }
            }

            catch (Exception ex)
            {
                throw ex;
            }
            return(Ok(retailer.Retailer_Id));
        }