SHA256
- Added UserMessageService to have common methods for showing messages and errors to the user. - Added Result record so services can return status on operation error (so it can be shown in the UI messages). - Updated services to use the new Result record. - Updated pages to use the new IUserMessageService.
11 lines
341 B
C#
11 lines
341 B
C#
namespace Somnia.GuestLog.Models;
|
|
|
|
public static class ResultCode
|
|
{
|
|
public const string Ok = "Ok";
|
|
public const string UnknownError = "UnknownError";
|
|
public const string FailedValidation = "FailedValidation";
|
|
public const string NotFound = "NotFound";
|
|
|
|
public const string GuestCurrentlyInStay = "GuestCurrentlyInStay";
|
|
} |