DealController comments
This commit is contained in:
@@ -169,6 +169,16 @@ namespace Business.Business.Sales
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds Deal to the database.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Requires no special roles.
|
||||
/// </remarks>
|
||||
/// <remarks>
|
||||
/// Accepts product id for getting the product, amount sold and time of transaction.
|
||||
/// </remarks>
|
||||
|
||||
public void Add(int productId, double Amount, DateTime time)
|
||||
{
|
||||
if (Amount > 0)
|
||||
@@ -184,6 +194,16 @@ namespace Business.Business.Sales
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds Deal to the database.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Requires no special roles.
|
||||
/// </remarks>
|
||||
/// <remarks>
|
||||
/// Accepts product name for getting the product, amount sold and time of transaction.
|
||||
/// </remarks>
|
||||
|
||||
public void Add(string productName, double Amount, DateTime time)
|
||||
{
|
||||
if (Amount > 0)
|
||||
@@ -201,6 +221,16 @@ namespace Business.Business.Sales
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Deletes Deal from the database.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Requires Manager Role or better.
|
||||
/// </remarks>
|
||||
/// <remarks>
|
||||
/// Accepts product id for getting the product
|
||||
/// </remarks>
|
||||
|
||||
public void Delete(int id)
|
||||
{
|
||||
if (currentUser != null || currentUser.RoleId > 1)
|
||||
|
Reference in New Issue
Block a user