fighting weird bug with branches
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System.Net;
|
||||
|
||||
namespace Server;
|
||||
|
||||
public class UpdateExperience : UpdateRoute
|
||||
{
|
||||
public static void HandleRequest(HttpListenerRequest request, HttpListenerResponse response)
|
||||
{
|
||||
List<string> validParamNames =
|
||||
[
|
||||
"job",
|
||||
"company",
|
||||
"location",
|
||||
"from_date",
|
||||
"to_date",
|
||||
"description",
|
||||
"id",
|
||||
];
|
||||
|
||||
try
|
||||
{
|
||||
UpdateDb(request, "experience", validParamNames, true);
|
||||
SendSuccess(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
SendError(response, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user