public IActionResult Get(string id) { // var baseserv = ServicesDAL.GetService(id); var getserv = GetServicesDAL.GetService(id); return(Ok()); //return Ok('[' + JsonConvert.SerializeObject(baseserv) + ',' + JsonConvert.SerializeObject(getserv) + ']'); }
public static void LogCustomerService(CustomerService _service) { var baseservice = ServicesDAL.GetService(_service.id); var getservice = GetServicesDAL.GetService(_service.id); string logstr = DateTime.Now.ToShortDateString() + '\t' + getservice.phoneunumber + '\t' + baseservice.name + '\t' + baseservice.price + '\t' + getservice.price + '\t' + new DateTime(getservice.starttime).ToString() + '\t' + new DateTime(getservice.endtime).ToString() + "\n"; File.AppendAllText("I:\\test.txt", logstr); }