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!!"));
            }
        }
Exemple #2
0
 public IHttpActionResult GetWishListCount()
 {
     return(Ok(_efr.CountAll()));
 }
Exemple #3
0
 public IHttpActionResult GetProductCategoryCount()
 {
     return(Ok(_efr.CountAll()));
 }
Exemple #4
0
 public IHttpActionResult GetAddressCount()
 {
     return(Ok(_efr.CountAll()));
 }
 public IHttpActionResult GetOrderCount()
 {
     return(Ok(_efr.CountAll()));
 }
Exemple #6
0
 public IHttpActionResult GetLineItemCount()
 {
     return(Ok(_efr.CountAll()));
 }