public IList <TransferScript> Post(IList <TransferScript> scripts) { if (scripts == null) { throw new ArgumentNullException("scripts"); } _scriptService.SaveScripts( scripts.Select((script => _scriptMapper.Map(script))) .ToList()); var identity = (FormsIdentity)HttpContext.Current.User.Identity; var operatorId = _cookieParser.GetUserId(identity); return(_scriptService.FetchScriptsByOperatorId(operatorId) .Select(script => _scriptMapper.Map(script)) .ToList()); }