Esempio n. 1
0
        public void DeleteScanResult(ScanResultVM value)
        {
            var data = ObjectMapper.Mapper.Map <ScanResult>(value);

            _stockMarketUow.ScanResultRepo.Delete(data);
            _stockMarketUow.Save();
        }
        public ActionResult UpdateScanResult([FromBody] ScanResultVM value)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                _stockMarketBusinessSevice.UpdateScanResult(value);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, ex));
            }
        }
 public void DeleteScanResult(ScanResultVM value)
 {
     _stockMarketDataSevice.DeleteScanResult(value);
 }
 public void UpdateScanResult(ScanResultVM value)
 {
     _stockMarketDataSevice.UpdateScanResult(value);
 }
 public void AddScanResult(ScanResultVM value)
 {
     _stockMarketDataSevice.AddScanResult(value);
 }