public IHttpActionResult DeleteUser([FromUri] Guid UserId)
        {
            var countBefore = _efr.CountAll();

            _efr.Delete(UserId);
            var countAfter = _efr.CountAll();

            if (countBefore == countAfter - 1)
            {
                return(Ok("User Deleted"));
            }
            else
            {
                return(Ok("User not Found!!"));
            }
        }
Exemplo n.º 2
0
 public IHttpActionResult GetWishListCount()
 {
     return(Ok(_efr.CountAll()));
 }
Exemplo n.º 3
0
 public IHttpActionResult GetProductCategoryCount()
 {
     return(Ok(_efr.CountAll()));
 }
Exemplo n.º 4
0
 public IHttpActionResult GetAddressCount()
 {
     return(Ok(_efr.CountAll()));
 }
 public IHttpActionResult GetOrderCount()
 {
     return(Ok(_efr.CountAll()));
 }
Exemplo n.º 6
0
 public IHttpActionResult GetLineItemCount()
 {
     return(Ok(_efr.CountAll()));
 }