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!!")); } }
public IHttpActionResult GetWishListCount() { return(Ok(_efr.CountAll())); }
public IHttpActionResult GetProductCategoryCount() { return(Ok(_efr.CountAll())); }
public IHttpActionResult GetAddressCount() { return(Ok(_efr.CountAll())); }
public IHttpActionResult GetOrderCount() { return(Ok(_efr.CountAll())); }
public IHttpActionResult GetLineItemCount() { return(Ok(_efr.CountAll())); }