public IHttpActionResult GetWarehouseReservationStockByNLBL(string userName, string password) { Library.DTO.Notification notification = new Library.DTO.Notification(); string errMsg = string.Empty; object data = null; if (AuthHelper.AuthorizeAPI(userName, password, out errMsg)) { data = executor.CustomFunction(-1, "GetWarehouseReservationStockByNLBL", null, out notification); } else { notification.Message = errMsg; } return(Ok(new Library.DTO.ReturnData <object>() { Data = data, Message = notification })); }