Documentation & code cleanup

This commit is contained in:
Dimitar Byalkov
2023-06-09 11:51:42 +02:00
parent 0ac97bd31a
commit 1832e111e3
61 changed files with 140 additions and 325 deletions

View File

@@ -1,11 +1,5 @@
using Models;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Logic
{

View File

@@ -1,9 +1,4 @@
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{
@@ -14,7 +9,7 @@ namespace Logic
{
this.commentRepository = commentRepository;
}
public Comment GetCommentById(int id)
{
return commentRepository.GetCommentById(id);

View File

@@ -1,16 +1,11 @@
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{
public class ComplaintManager
{
private IComplaintRepository complaintRepository;
public ComplaintManager(IComplaintRepository complaintRepository)
public ComplaintManager(IComplaintRepository complaintRepository)
{
this.complaintRepository = complaintRepository;
}

View File

@@ -1,9 +1,4 @@
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{
@@ -14,7 +9,7 @@ namespace Logic
{
this.eventRepository = eventRepository;
}
public List<Event> GetAllEvents()
public List<Event> GetAllEvents()
{
return eventRepository.GetAllEvents();
}

View File

@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace Logic.Exceptions
{

View File

@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic.Exceptions
namespace Logic.Exceptions
{
public class DatabaseOperationException : ApplicationException
{

View File

@@ -1,10 +1,4 @@
using Models;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{

View File

@@ -1,5 +1,3 @@
using System.ComponentModel.Design;
using System.Data.SqlClient;
using Models;
namespace Logic;

View File

@@ -1,10 +1,4 @@
using Logic.Exceptions;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
namespace Logic
{

View File

@@ -1,9 +1,4 @@
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{
@@ -17,4 +12,3 @@ namespace Logic
public void DeleteEvent(int id);
}
}

View File

@@ -1,9 +1,4 @@
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{

View File

@@ -1,14 +1,4 @@
using BCrypt.Net;
using Models;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using Models;
namespace Logic
{