public virtual ActionResult SetPriority(string buildingId, string pickAreaId, int skuId, bool setHighPriorityFlag) { Response.StatusCode = 202; if (setHighPriorityFlag) { // TC11: Increasing priority var expiryTime = _service.IncreaseSkuPriority(buildingId, pickAreaId, skuId); if (expiryTime == null) { return(Content("SKU is not assigned at any location.")); } return(Content(string.Format("Priority of SKU is set to high until {0:t}", expiryTime))); } // TC12: Decreasing priority var b = _service.DecreaseSkuPriority(buildingId, pickAreaId, skuId); if (b) { return(Content("Priority of SKU has been set to normal")); } return(Content("SKU was not marked as high priority")); }