GetLatestRRNo(ItemDto itemDto)
{
- try
- {
- var myPR = await _receiving.GetLatestRRNo(itemDto);
+ var myPR = await _receiving.GetLatestRRNo(itemDto);
- return Ok(myPR);
- }
- catch (Exception ex)
- {
- var message = ex.InnerException?.ToString() ?? ex.Message.ToString();
- await PostErrorMessage(message + "GetLatestRRNo", "WebApi");
- throw;
- }
+ return Ok(myPR);
}
#endregion
}
diff --git a/CPRNIMS.WebApi/Program.cs b/CPRNIMS.WebApi/Program.cs
index 656b101..b804e42 100644
--- a/CPRNIMS.WebApi/Program.cs
+++ b/CPRNIMS.WebApi/Program.cs
@@ -1,3 +1,4 @@
+using CPRNIMS.Domain.Profile.Canvass;
using CPRNIMS.Middleware;
using CPRNIMS.WebApi.Common;
@@ -5,6 +6,8 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddApplicationServices(builder);
+builder.Services.AddAutoMapper(cfg => { }, typeof(SupplierRequestProfile));
+
var app = builder.Build();
// Configure the HTTP request pipeline.
diff --git a/CPRNIMS.WebApps/Views/Components/Receiving/RRPrinting/DR.cshtml b/CPRNIMS.WebApps/Views/Components/Receiving/RRPrinting/DR.cshtml
index 885cfc0..d86cf5a 100644
--- a/CPRNIMS.WebApps/Views/Components/Receiving/RRPrinting/DR.cshtml
+++ b/CPRNIMS.WebApps/Views/Components/Receiving/RRPrinting/DR.cshtml
@@ -8,7 +8,7 @@
- LLOD LABORATORIES INC.
+ LLOYD LABORATORIES INC.